package com.ytjj.qmyx.supplychain.common.utils;

import com.ytjj.qmyx.supplychain.common.constants.RedisKeyUtils;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Description 文案配置工具类
 * @ClassName CopyWriterConfigUtil
 * 
 * 
 * @Version 1.0
 **/
@Component
public class CopyWriterConfigUtil {
    @Resource
    private RedisService redisService;

    /**
     * 获取文案配置value
     *
     * @param key
     * @return
     */
    public String getCopyWriterValue(String key) {
        return redisService.getMapString(RedisKeyUtils.COPYWRITER_CONFIG, key);
    }

}
